<template>
  <div class="welcome-box">
  <div class="welcome">
    <div class="title">
      <p style="line-height: 100px;">超市管理系统（毕设作）</p>
    </div>
    <div class="content">
      <div class="skill-info">
        <el-tag
                v-for="item in frontendSkill"
                :key="item.label"
                :type="item.type"
                effect="dark"
                style="margin:10px">
          {{ item.label }}
        </el-tag>
        <br />
        <el-tag
                v-for="item1 in backendSkill"
                :key="item1.label"
                :type="item1.type"
                effect="plain"
                style="margin:10px">
          {{ item1.label }}
        </el-tag>
      </div>
      <div>邮箱地址：1476711643@qq.com</div>
      <p>仓库地址：https://gitee.com/a12312315/vue_supermarketsystem</p>
    </div>
    <div class="start">请点击下面的按钮开始食用</div>
    <el-button icon="el-icon-arrow-left" style="margin: 15px" @click="LinkStart">进入员工列表</el-button>
    </div>
  </div>
</template>
<script>
export default {
  data(){
    return{
      frontendSkill:[
        { type: '', label: 'Vue.js' },
        { type: 'success', label: 'Vue-Router' },
        { type: 'info', label: 'Vuex' },
        { type: 'danger', label: 'Element-UI' },
        { type: 'warning', label: 'Axios' }
      ],
      backendSkill:[
        { type: '', label: 'Node.js' },
        { type: 'success', label: 'Express' },
        { type: 'info', label: 'JWTToken' },
      ]
    }
  },
  methods:{
    LinkStart(){
      this.$store.state.isIndex = false;
      this.$router.push('/staff')
    }
  },
  created(){
    this.$store.state.isIndex = true;
  },
  destroy(){
    console.log('haha')
    this.$store.state.isIndex = false;
  }

}
</script>
<style lang="less" scoped>
a {
  text-align: center;
  color: #fff;
}
.welcome-box {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: url("../../assets/index-head.jpg") no-repeat;
.welcome {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .title {
    color: #fff;
    font-size: 41px;
    font-weight: bold;
  }
  .content {
    color: #fff;
    line-height: 40px;
    text-align: center;
  }
  .start {
    color: #fff;
    font-weight: bold;
    font-size: 25px;
    line-height: 40px;
  }
}
}
</style>